package com.nineclock.message.service;

import com.nineclock.message.dto.NcMessageDTO;
import com.nineclock.message.pojo.NcMessage;

import java.util.List;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface MessageService {

    /**
     * 根据用户别名推送消息
     * @param message
     * @return
     */
    public Boolean pushSingleMessage(NcMessage message) throws Exception;

    List<NcMessage> findMessageRecord(NcMessageDTO messageDTO);

    void updateMessageWithApproved(String messageId);
}
